﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>@ViewBag.Title</title>
    <base href="@(Request.Url.GetComponents(UriComponents.SchemeAndServer, UriFormat.Unescaped) + Url.Content("~"))" />
    @*<base href="http://localhost/LabChecker/" />*@
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    @*    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>*@
</head>
@{
    var hideMenu = (bool?)ViewBag.HideMenu ?? false;
}
<body>
    <div class="page">
        <header>
            <div id="title">
                @if (!hideMenu)
                {
                    <h1>@Html.ActionLink("Lab Checker", "Index", "Home")</h1>
                }
            </div>
            @if (!hideMenu)
            {
                <div id="logindisplay" style="visibility:hidden">
                    @Html.Partial("_LogOnPartial")
                </div>
            }
            <nav>
                @if (!hideMenu)
                {  
                    <ul id="menu">
                        @*<li>@Html.ActionLink("Home", "Index", "Home")</li>*@
                        @if (Settings.Default.UseCheckerClient)
                        {
                            <li><a href="@Url.Content("~/ClientInstaller/LabChecker.Client.application")">Проверить</a></li>                        
                        }
                        else
                        {
                            <li>@Html.ActionLink("Проверить", "Index", "Checker")</li>
                        }
                        @*<li>@Html.ActionLink("Edit tasks", "Index", "Subject")</li>*@
                        @*<li>@Html.ActionLink("About", "About", "Home")</li>*@
                    </ul>
                }
            </nav>
        </header>
        <section id="main">
            @RenderBody()
        </section>
        <footer>
        </footer>
    </div>
</body>
</html>
